import {createSlice} from '@reduxjs/toolkit'

const redirectSlice = createSlice({
    name: 'redirect',
    initialState:{
        isRedirect: false
    },
    reducers:{
        setRedirect(state, {payload}){
            state.isRedirect = payload
        }
    }
})

export default redirectSlice.reducer
export const {setRedirect} = redirectSlice.actions